package java_class.Game1_class;

public class RoleTest {
    public static void main(String[] args) {
        Role r1 = new Role("孙亚森", 100);
        Role r2 = new Role("李晴", 100);
        while (true) {
            r1.sttack(r2);
            if (r2.getBlood() <= 0) {
                System.out.println(r1.getName() + "获得了胜利");
                break;
            }
            r2.sttack(r1);
            if (r1.getBlood() <= 0) {
                System.out.println(r2.getName() + "获得了胜利");
                break;
            }
        }
    }

}